<?php

class Core_Frontend_Module_Poi_Latest_Config extends Core_Module_Config {

    public function buildForm($form, $parameters = array()) {
        $form->addBooleanField($this->__('share.label.is_show_index'), 'is_show_index', 'module[parameters][is_show_index]')
                ->setYesOption($this->__('status.boolean.1'))
                ->setNoOption($this->__('status.boolean.0'));
        $form->addTextBoxField($this->__('share.label.headline_index_count'), 'headline_index_count', 'module[parameters][headline_index_count]')
                ->addDigitsRule();
        $form->addSelectField($this->__('share.label.sort_condition'),'sort_condition','module[parameters][sort_condition]')
                ->setOption($this->__('share.label.clickcount'), 'click_count')
                ->setOption($this->__('share.label.modified_time'), 'modified_time');
        $form->addTextBoxField($this->__('share.label.item_count'),'item_count','module[parameters][item_count]')
             ->addRequiredRule()
             ->addDigitsRule();
        $form->addTextBoxField($this->__('share.label.image_count'),'image_count','module[parameters][image_count]')
             ->setValue(0)
             ->addDigitsRule();
        $form->addTextBoxField($this->__('share.label.introduction_count'),'introduction_count','module[parameters][introduction_count]')
             ->addDigitsRule();
        $form->addTextBoxField($this->__('share.label.introduction_size'),'introduction_size','module[parameters][introduction_size]')
             ->addDigitsRule();
        $form->addTextBoxField($this->__('share.label.image_width'),'image_width','module[parameters][image_width]')
             ->setValue(0)
             ->addDigitsRule();
        $form->addTextBoxField($this->__('share.label.image_height'),'image_height','module[parameters][image_height]')
             ->setValue(0)
             ->addDigitsRule();
    }

}